LearningSession.IsMoveToActivityValid Method (string)

Gets a boolean value indicating whether or not moving to the selected activity is a valid operation.

Parent Type: LearningSession

Namespace: Microsoft.LearningComponents

Assembly: Microsoft.LearningComponents.dll

Syntax
C#

public virtual bool IsMoveToActivityValid (
string activityKey

)

Parameters

activityKey

The key that uniquely identifies the activity.

Return Value

Returns true if moving to the selected activity would result in making that activity become the current activity.

Exceptions
Exception type Condition
ArgumentNullException

Thrown if activityKey is null.

ArgumentOutOfRangeException

Thrown if activityKey is an empty string.